package com.chagee.store.operation.server.facade;

import com.chagee.base.utils.PaginationData;
import com.chagee.base.utils.PaginationRequest;
import com.chagee.store.operation.server.model.param.AddCommentConfigParam;
import com.chagee.store.operation.server.model.param.CommentConfigurationParam;
import com.chagee.store.operation.server.model.param.CommentDetailParam;
import com.chagee.store.operation.server.model.param.EnableCommentParam;
import com.chagee.store.operation.server.model.param.QueryOperateRecordParam;
import com.chagee.store.operation.server.model.param.UpdateCommentConfigParam;
import com.chagee.store.operation.server.model.vo.CommentConfigurationVO;
import com.chagee.store.operation.server.model.vo.OperateRecordVo;
import com.chagee.store.operation.server.service.biz.CommentConfigurationBizService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 *
 *
 * @Author : hk
 * @Date : 2024/7/5
 */

@Slf4j
@Service
@RequiredArgsConstructor
public class CommentConfigurationFacade {

	@Resource
	private CommentConfigurationBizService commentConfigurationBizService;

	public PaginationData<CommentConfigurationVO> queryCommentConfigPage(PaginationRequest<CommentConfigurationParam> request) {
		return commentConfigurationBizService.queryCommentConfigPage(request);
	}

	public Boolean addComment(AddCommentConfigParam request) {
		return commentConfigurationBizService.addComment(request);
	}

	public CommentConfigurationVO commentDetail(CommentDetailParam request) {
		return commentConfigurationBizService.commentDetail(request);
	}

	public Boolean updateComment(UpdateCommentConfigParam request) {
		return commentConfigurationBizService.updateComment(request);
	}

	public Boolean enableComment(EnableCommentParam request) {
		return commentConfigurationBizService.enableComment(request);
	}

	public PaginationData<OperateRecordVo> queryOperateRecordPage(PaginationRequest<QueryOperateRecordParam> request) {
		return commentConfigurationBizService.queryOperateRecordPage(request);
	}
}
